package com.kl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableHystrix // 开启hystrix断路器   本身@EnableHystrix注解已经涵盖了EnableCircuitBreaker的功能
@SpringBootApplication
@EnableSwagger2
//feign的启动
@EnableFeignClients
//@EnableCircuitBreaker //熔断功能
@MapperScan("com.kl.mapper")
@EnableDiscoveryClient
public class OrderServiceApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApp.class,args);
    }
}
